ViewPathProvider

fun interface ViewPathProvider(source)

An interface through which to set the clip Path for irregularly shaped Views on API levels 30 and above.

Views that are not circles, plain rectangles, or single-radius rounded rectangles have their shapes defined by a Path field that became inaccessible starting with Android R. For those cases, this interface and its corresponding extension property – pathProvider – provide a fallback through which to set it manually.

Inheritors

Functions

Link copied to clipboard
abstract fun getPath(view: View, path: Path)

Called for non-rectangular shapes on API levels 30 and above.